package com.lxz.bookmanager.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "lend_list")
public class Record {
    @TableField(value = "sernum")
    private long sernum;

    @TableField(value = "book_id")
    private long bookId;

    @TableField(value = "book_name")
    private String bookName;

    @TableField(value = "reader_id")
    private int readerId;

    @TableField(value = "lend_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lendDate;

    @TableField(value = "back_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date backDate;

    @TableField(value = "back_state")
    private int backState;

    
}
